package com.wwtech.epp.ui.activity.friend;

import android.os.Bundle;

import com.wwtech.epp.application.AppConfig;
import com.wwtech.epp.base.BaseActivity;
import com.wwtech.epp.ui.activity.friend.component.DaggerStartGroupComponent;
import com.wwtech.epp.ui.activity.friend.contract.StartGroupContract;
import com.wwtech.epp.ui.activity.friend.module.StartGroupModule;
import com.wwtech.epp.ui.activity.friend.presenter.StartGroupPresenter;

import javax.inject.Inject;

import butterknife.ButterKnife;

/**
 * @author hzp
 * @Package com.wwtech.epp.ui.activity.friend
 * @Description: $description
 * @date 2017/09/06 23:23:03
 */

public class StartGroupActivity extends BaseActivity implements StartGroupContract.View {

    @Inject
    StartGroupPresenter mPresenter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initView() {
//        setContentView(R.layout.activity_startGroup);
        ButterKnife.bind(this);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void setupActivityComponent() {
       DaggerStartGroupComponent
               .builder()
               .appComponent(((AppConfig) getApplication()).getApplicationComponent())
               .startGroupModule(new StartGroupModule(this))
               .build()
               .inject(this);
    }
    @Override
    public void setPresenter(StartGroupContract.StartGroupContractPresenter presenter) {
        mPresenter = (StartGroupPresenter) presenter;
    }

    @Override
    public void showProgressDialog() {
        progressDialog.show();
    }

    @Override
    public void closeProgressDialog() {
        progressDialog.hide();
    }

}